//
//  nativeTableViewCell.m
//  SXH
//
//  Created by Jack on 15/7/9.
//  Copyright (c) 2015年 lyss. All rights reserved.
//

#import "NativeTableViewCell.h"
#import "UIView+AutoLayout.h"

@implementation NativeTableViewCell

- (instancetype)initWithCoder:(NSCoder *)coder
{
    self = [super initWithCoder:coder];
    if (self) {
        
    }
    return self;
}

- (void)awakeFromNib {
    // Initialization code
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    
    
    // Configure the view for the selected state
}

-(void)prepareForReuse{
    self.myDescript = [UILabel autoLayoutView];
    [self.contentView addSubview:self.myDescript];
    self.myDescript.text = @"产品介绍";
    [self.myDescript pinToSuperviewEdges:JRTViewPinTopEdge inset:10.0];
    [self.myDescript pinToSuperviewEdges:JRTViewPinLeftEdge inset:20.0];
    [self.myDescript setTranslatesAutoresizingMaskIntoConstraints:NO];
    
    
    self.myText = [UITextView autoLayoutView];
    [self.contentView addSubview:self.myText];
    [self.myText pinToSuperviewEdges:JRTViewPinLeftEdge inset:20.0];
    [self.myText pinToSuperviewEdges:JRTViewPinRightEdge inset:20.0];
    [self.myText pinToSuperviewEdges:JRTViewPinBottomEdge inset:10.0];
    [self.myText pinAttribute:NSLayoutAttributeTop toAttribute:NSLayoutAttributeBottom ofItem:self.myDescript withConstant:10.0];
    [self.myText setEditable:NO];
}

@end
